_entity = simple.getEntity();
}
else if(resourceSchema.hasActionsSet())
{
_type = ResourceType.ACTION_SET;
ActionsSetSchema actionSet = resourceSchema.getActionsSet();
_supports = new StringArray(0);
_methods = new RestMethodSchemaArray(0);
_finders = new FinderSchemaArray(0);;
_actions = actionSet.hasActions() ? actionSet.getActions() : new ActionSchemaArray(0);
_entity = null;
}
else
{
throw new IllegalArgumentException("Invalid resourceSchema, must be one of: " + EnumSet.allOf(ResourceType.class));