private static String getLinkNameSpace ( String target ) { int pos = target . indexOf ( ' ' ) ; if ( pos == - 1 ) { return null ; } else { return target . substring ( 0 , pos ) . replace ( ' ' , ' ' ) . trim ( ) . toLowerCase ( ) ; } }
Returns the LOWERCASE NameSpace of the link target