private byte[] loadClassData(String name) throws IOException {
            final ByteArrayOutputStream out = new ByteArrayOutputStream();
            final String classFilename = name.replaceAll("\\.", "/") + ".class";
            final InputStream in = classFileMap.get(classFilename).openInputStream();
            try {
                final byte[] buf = new byte[1024];
                int len = in.read(buf);
                while (len != -1) {
                    out.write(buf, 0, len);
                    len = in.read(buf);
                }
            } finally {
                in.close();
            }
            return out.toByteArray();
        }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-annotations/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/GremlinDslProcessorTest.java