Update ResourceAdaptor.java