Minor code cleanup to remove unecessary private variables.
Method does not need to be marked "final" as it is private.
Static methods don't need to be marked final.
Put the final back for the static methods.  Prevents hidding by subclasses.
Simplify an if statement.
Simplify if statement.
Made variable final.
Cleaned up imports in gremlin-core.