checkImplements(langType, writableClass, interpreter);
return langType.getJavaClass();
case JYTHON:
GRAPH_TYPE_LANGUAGES.set(conf, graphType, Language.JYTHON);
String jythonClassName = langType.getJythonClassName();
PyObject jythonClass = interpreter.get(jythonClassName);
if (jythonClass == null) {
throw new IllegalArgumentException("Could not find Jython class " +
jythonClassName + " for parameter " + graphType);
}
PyObject valuePyObj = jythonClass.__call__();
// Check if the Jython type implements Writable. If so, just use it
// directly. Otherwise, wrap it in a class that does using pickle.
Object pyWritable = valuePyObj.__tojava__(writableClass);
if (pyWritable.equals(Py.NoConversion)) {
GiraphConstants.GRAPH_TYPES_NEEDS_WRAPPERS.set(conf, graphType, true);
jythonFactory.useThisFactory(conf, jythonClassName);
return JythonWritableWrapper.class;
} else {