final ApplicationFeature feature = applicationFeatures.findFeature(featureId);
if(feature == null) {
container.warnUser("No such " + featureType.name().toLowerCase() + ": " + featureFqn);
return null;
}
<BUG>ApplicationPermission permission = findByRoleAndRuleAndFeature(role, rule, featureType, featureFqn);
if (permission != null) {
return permission;
}</BUG>
return newPermissionNoCheck(role, rule, mode, featureType, featureFqn);

final ApplicationFeature feature = applicationFeatures.findFeature(featureId);
if(feature == null) {
container.warnUser("No such " + featureType.name().toLowerCase() + ": " + featureFqn);
return null;
