public static String deflate(String uri,String namespace){
  if (uri == null)   return uri;
  if (uri.startsWith(namespace))   return uri.substring(namespace.length());
  return uri;
}

public static String deflate ( String uri , String namespace ) { if ( uri == null ) return uri ; if ( uri . startsWith ( namespace ) ) return uri . substring ( namespace . length ( ) ) ; return uri ; }
deflate a full uri into a short name if possible . uris that belong to a different namespace are left alone .
