public < T extends UserProperty > T getProperty ( Class < T > clazz ) { for ( UserProperty p : properties ) { if ( clazz . isInstance ( p ) ) return clazz . cast ( p ) ; } return null ; }
Gets the specific property or null .