o Fixed a potential synchronization issue on the DirectoryServcice
o Closed a stream that remained opened
o Remove unused fields in some classes
o Simplified some if() code
o Removed a method that was looping

git-svn-id: https://svn.apache.org/repos/asf/directory/shared/trunk@1485695 13f79535-47bb-0310-9956-ffa450edef68