Partially implementation of LocalAdaptor.