public AbstractAttribute getAttributeByName ( final String attributeName ) { final Lock lock = sharedObject . getLock ( ACCESS_OBJECT ) . readLock ( ) ; AbstractAttribute result = null ; try { lock . lock ( ) ; if ( attributesMap != null ) { result = attributesMap . get ( attributeName ) ; } } finally { lock . unlock ( ) ; } return result ; }
gets the attribute by attribute name