private String readBeanName ( Class beanClass ) throws NoSuchFieldException , IllegalAccessException { final Field field = beanClass . getField ( "BEAN_NAME" ) ; return String . valueOf ( field . get ( null ) ) ; }
Find what s stored in BEAN_NAME and return it or toss an exception .