added ModelAdaptor.java