class Beans {

    public static Object getProperty(BeanType beanType,Object bean,String property) throws ObjectNotFoundException{
    	if(bean instanceof DynaBean){
    		return ((DynaBean) bean).getProperty(property);
    	}
    	
    	BeanProperty bp = beanType.tryGetProperty(property);
    	if(null != bp){
    		return bp.getValue(bean);
    	}
    	
    	throw new ObjectNotFoundException("Property '" + property + "' not found in bean class '" + bean.getClass().getName());
    }

    protected  Beans();

}