protected void addInjectionProperty( Injection metaInj, BeanLevelInfo leaf ) {
if ( StringUtils.isBlank( metaInj.name() ) ) {
throw new RuntimeException( "Property name shouldn't be blank in the " + clazz );
}
String propertyName = calcPropertyName( metaInj, leaf );
if ( properties.containsKey( propertyName ) ) {
throw new RuntimeException( "Property '" + propertyName + "' already defined for " + clazz );
}
if ( hideProperties.contains( propertyName ) ) {
return;
}
Property prop = new Property( propertyName, metaInj.group(), leaf.createCallStack() );
properties.put( prop.name, prop );
Group gr = groupsMap.get( metaInj.group() );
if ( gr == null ) {
throw new RuntimeException( "Group '" + metaInj.group() + "' for property '" + metaInj.name()
+ "' is not defined " + clazz );
}
gr.groupProperties.add( prop );
}