class ReflectionUtils {

    public static String getProperty( Object object, String property )
    {
        try
        {
            property = property.substring( 0, 1 ).toUpperCase() + property.substring( 1, property.length() );

            Method method = object.getClass().getMethod( "get" + property );

            return (String) method.invoke( object );
        }
        catch ( NoSuchMethodException ex )
        {
            return null;
        }
        catch ( InvocationTargetException ex )
        {
            return null;
        }
        catch ( IllegalAccessException ex )
        {
            return null;
        }
    }

}