Buggy code:
public class DefaultConfigurer extends AbstractLogEnabled implements LogEnabled , Serviceable , Configurer { private static final Resources REZ = ResourceManager . getPackageResources ( DefaultConfigurer . class ) ; private MasterConverter m_converter ; private TypeManager m_typeManager ; private RoleManager m_roleManager ; private Map m_configurerCache = new HashMap ( ) ; public void service ( final ServiceManager serviceManager ) throws ServiceException { } public void configure ( final Object object , final Configuration configuration , final Context context ) throws ConfigurationException { } private void configureObject ( final Object object , final Configuration configuration , final Context context ) throws Exception { } public void configure ( final Object object , final String name , final String value , final Context context ) throws ConfigurationException { } private void setContent ( final ConfigurationState state , final String content , final Context context ) throws Exception { } private void configureElement ( final ConfigurationState state , final Configuration element , final Context context ) throws Exception { } private void configureInline ( final ConfigurationState state , final Configuration element , final Context context ) throws Exception { } private void configureReference ( final ConfigurationState state , final Configuration element , final Context context ) throws Exception { } private void setReference ( final ConfigurationState state , final String refName , final String unresolvedId , final Context context ) throws Exception { final String name = refName . substring ( 0 , ( ( refName . length ( ) ) - 4 ) ) ; final PropertyConfigurer childConfigurer = getConfigurerFromName ( state . getConfigurer ( ) , name , false ) ; Object id = PropertyUtil . resolveProperty ( unresolvedId , context , false ) ; Object ref = null ; try { ref = context . get ( id ) ; } catch ( final ContextException e ) { <START_BUG> final String message = DefaultConfigurer . REZ . getString ( "get-ref.error" , id ) ; <END_BUG> throw new ConfigurationException ( message , e ) ; } final Class type = childConfigurer . getType ( ) ; if ( ! ( type . isInstance ( ref ) ) ) { final String message = DefaultConfigurer . REZ . getString ( "mismatch-ref-types.error" , id , type . getName ( ) , ref . getClass ( ) . getName ( ) ) ; throw new ConfigurationException ( message ) ; } childConfigurer . addValue ( state , ref ) ; } private void setAttribute ( final ConfigurationState state , final String name , final String value , final Context context ) throws Exception { } private void setValue ( final PropertyConfigurer setter , final ConfigurationState state , final String value , final Context context ) throws Exception { } private ObjectConfigurer getConfigurer ( final Class clazz ) throws ConfigurationException { } private Object setupChild ( final ConfigurationState state , final Configuration element , final Context context , final PropertyConfigurer childConfigurer ) throws Exception { } private PropertyConfigurer getConfigurerFromName ( final ObjectConfigurer configurer , final String name , boolean ignoreRoleName ) throws Exception { } private Object createdTypedObject ( final String name , final Class type ) throws Exception { } private Object createObject ( final Class type ) throws Exception { } }

Fix:
final String message = DefaultConfigurer . REZ . getString ( "unknown-reference.error" , id ) ;