@classmethod
def _load_java(cls, sc, path):
    """
        Load a Java model from the given path.
        """
    java_class = cls._java_loader_class()
    java_obj = sc._jvm
    for name in java_class.split('.'):
        java_obj = getattr(java_obj, name)
    return java_obj.load(sc._jsc.sc(), path)
