I have some HashMap:
Map<SearchConfig, Object> searchParams;
There Object can be as simple type, such as String, or he can be simple entity:
public class SearchDataEntity implements Serializable  {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    public SearchDataEntity() {}
    private String startDate;
    private String endDate;
    public String getStartDate() {
        return startDate;
    }
    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }
    public String getEndDate() {
        return endDate;
    }
    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }
}
When I send this to the server I have SerializationException.
If I send SearchDataEntity separately from Map it's OK.