Code cleanup on from(Scope) - Replaced if...else.. by the switch(enum).

git-svn-id: https://svn.forgerock.org/opendj/trunk/opendj@10661 41b1ffd8-f28e-4786-ab96-9950f0a78031