public synchronized boolean load ( AmazonWebServiceRequest request , ResultCapture < ? > extractor ) { if ( attributes != null ) { return false ; } ActionModel action = resourceModel . getLoadAction ( ) ; if ( action == null ) { throw new UnsupportedOperationException ( "This resource does not support being loaded." ) ; } // The facade generator ensures it's only ever possible to pass an // instance of the appropriate type. @ SuppressWarnings ( "unchecked" ) ResultCapture < Object > erasedExtractor = ( ResultCapture < Object > ) extractor ; ActionResult result = ActionUtils . perform ( this , action , request , erasedExtractor ) ; this . attributes = parseAttributes ( resourceModel , result . getData ( ) ) ; return true ; }
Explicitly loads a representation of this resource by calling the service to retrieve a new set of attributes .