public String getTitle ( ) { final String key = String . format ( "pm.field.%s.%s" , getEntity ( ) . getId ( ) , getId ( ) ) ; final String message = getPm ( ) . message ( key ) ; if ( key . equals ( message ) ) { final Entity extendzEntity = getEntity ( ) . getExtendzEntity ( ) ; if ( extendzEntity != null && extendzEntity . getFieldById ( getId ( ) ) != null ) { return extendzEntity . getFieldById ( getId ( ) ) . getTitle ( ) ; } } return message ; }
Returns the internationalized field title