code: protected char[] removeFragmentIdentifier(char[] component) {
          if (component == null) { 
              return null;
          }
          int lastIndex = new String(component).indexOf('#');
          if (lastIndex != -1) {
              component = new String(component).substring(0,
                      lastIndex).toCharArray();
          }
          return component;
      }
docs: Remove the fragment identifier of the given component.
  
  @param component the component that a fragment may be included
  @return the component that the fragment identifier is removed