public boolean canCreateRule(Policy policy,String realmName){
  getSvcTypeNameToActionsMap(policy,realmName);
  return !requiredResourceNameService.isEmpty() || !notRequiredResourceNameService.isEmpty();
}

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