Added support for @GremlinPipeline.first()@ to Java

Added support for @GremlinPipeline.first()@ to retrieve the first element in the pipeline.
This feature already exists in the Groovy version so just adding it to Java as well.

If the pipeline is empty then NoSuchElementException is thrown as per Groovy version.