private static void writeToConsole(LDIFEntryWriter writer,Entry entry) throws IOException {
  writer.writeEntry(entry);
  writer.flush();
}

private static void writeToConsole ( LDIFEntryWriter writer , Entry entry ) throws IOException { writer . writeEntry ( entry ) ; writer . flush ( ) ; }
write the entry in ldif form to system . out .
