// get all actions into a single ActionSchemaArray
int resourceActionsSize = resourceActions == null ? 0 : resourceActions.size();
int entityActionsSize = entityActions == null ? 0 : entityActions.size();
ActionSchemaArray allActionSchema = new ActionSchemaArray(resourceActionsSize + entityActionsSize);
allActionSchema.addAll(resourceActions == null ? new ActionSchemaArray() : resourceActions);
allActionSchema.addAll(entityActions == null ? new ActionSchemaArray() : entityActions);
for(ActionSchema actionSchema : allActionSchema)
{
String varName = actionSchema.getName() + "Params";
JVar currMethodParams = staticInit.decl(fieldDefListClass, varName).init(JExpr._new(fieldDefListClass));