private static String[] split(String attribute){
  String[] s=new String[2];
  int pos=attribute.indexOf(':');
  if (pos == -1) {
    s[0]="basic";
    s[1]=attribute;
  }
 else {
    s[0]=attribute.substring(0,pos++);
    s[1]=(pos == attribute.length()) ? "" : attribute.substring(pos);
  }
  return s;
}

private static String [ ] split ( String attribute ) { String [ ] s = new String [ 2 ] ; int pos = attribute . indexOf ( ':' ) ; if ( pos == - 1 ) { s [ 0 ] = "basic" ; s [ 1 ] = attribute ; } else { s [ 0 ] = attribute . substring ( 0 , pos ++ ) ; s [ 1 ] = ( pos == attribute . length ( ) ) ? "" : attribute . substring ( pos ) ; } return s ; }
splits the given attribute name into the name of an attribute view and the attribute . if the attribute view is not identified then it assumed to be " basic " .
