private Instance instance;
private String username;
public EC2Provider(InvocationContext invocationContext) throws ProviderException {
ExecutionContext execContext = invocationContext.getExecutionContext();
OMElement omSecurityContextHeader = execContext.getSecurityContextHeader();
ContextHeaderDocument document = null;
try {
document = ContextHeaderDocument.Factory.parse(omSecurityContextHeader.toStringWithConsume());
} catch (XMLStreamException e) {