question: public boolean canCreateRule ( Policy policy , String realmName ) { getSvcTypeNameToActionsMap ( policy , realmName ) ; return ! requiredResourceNameService . isEmpty ( ) || ! notRequiredResourceNameService . isEmpty ( ) ; }
target:  Returns true if rule can be created in a policy.