// get the wsrp user and store it as an attribute on the instance
final String currentUserID = this.service.getComponentManager().getProfileManager().getUser().getUserName();
User user = this.consumerEnvironment.getUserRegistry().getUser(currentUserID);
if ( user == null ) {
// create a new user
user = new UserImpl(currentUserID);
user.setUserContext(this.userContextProvider.createUserContext(currentUserID));
this.consumerEnvironment.getUserRegistry().addUser(user);
}
coplet.setTemporaryAttribute(ATTRIBUTE_NAME_USER, user);