return (T) invoke(resource.getClass());
}
public <C> C invoke(final Class<C> cls) throws ScimException
{
Response response = buildRequest().post(
<BUG>Entity.entity(resource, MEDIA_TYPE_SCIM_TYPE));
if(response.getStatusInfo().getFamily() ==</BUG>
Response.Status.Family.SUCCESSFUL)
{
<BUG>C entity = response.readEntity(cls);

response.close();
return entity;</BUG>
}

return (T) invoke(resource.getClass());
}
public <C> C invoke(final Class<C> cls) throws ScimException
{
Response response = buildRequest().post(
Entity.entity(resource, MEDIA_TYPE_SCIM_TYPE));
try
{
if(response.getStatusInfo().getFamily() ==
Response.Status.Family.SUCCESSFUL)
{
return response.readEntity(cls);
}
