code: public static InstanceContext parse( String s ) {
  
  		String name = null, qualifier = null, instancePathOrComponentName = null;
  		if( s != null ) {
  			Matcher m = Pattern.compile( "(.*)::(.*)::(.*)" ).matcher( s );
  			if( m.matches()) {
  				name = m.group( 1 ).equals( "null" ) ? null : m.group( 1 );
  				qualifier = m.group( 2 ).equals( "null" ) ? null : m.group( 2 );
  				instancePathOrComponentName = m.group( 3 ).equals( "null" ) ? null : m.group( 3 );
  			}
  		}
  
  		return new InstanceContext( name, qualifier, instancePathOrComponentName );
  	}
docs: Parses a string to resolve a target mapping key.
  @param s a string (can be null)
  @return a target mapping key (never null)