@ Nullable public static HC_Target getFromName ( @ Nonnull final String sName , @ Nullable final HC_Target aDefault ) { if ( BLANK . getAttrValue ( ) . equalsIgnoreCase ( sName ) ) return BLANK ; if ( SELF . getAttrValue ( ) . equalsIgnoreCase ( sName ) ) return SELF ; if ( PARENT . getAttrValue ( ) . equalsIgnoreCase ( sName ) ) return PARENT ; if ( TOP . getAttrValue ( ) . equalsIgnoreCase ( sName ) ) return TOP ; return aDefault ; }
Try to find one of the default targets by name . The name comparison is performed case insensitive .