private static Entry newEntry(ByteBuffer buffer,int entryLength,boolean isLeaf) throws IOException {
  if (isLeaf) {
    return new Entry(buffer,entryLength);
  }
  return new NodeEntry(buffer,entryLength);
}

private static Entry newEntry ( ByteBuffer buffer , int entryLength , boolean isLeaf ) throws IOException { if ( isLeaf ) { return new Entry ( buffer , entryLength ) ; } return new NodeEntry ( buffer , entryLength ) ; }
returns a new entry of the correct type for the given data and page type .
