public static CollectionId parse(String str){
  String[] parts=str.split("[\\" + '.' + "]");
  if (parts.length < 3)   return null;
  return new CollectionId(parts[0],parts[1],parts[2]);
}

public static CollectionId parse ( String str ) { String [ ] parts = str . split ( "[\\" + '.' + "]" ) ; if ( parts . length < 3 ) return null ; return new CollectionId ( parts [ 0 ] , parts [ 1 ] , parts [ 2 ] ) ; }
parse the supplied string , extracting the first 3 parts into a collection .
