class ImportAttributeModel {

    public void execute(String name, String scope, String toName, boolean ignore, Request request) {
        Map<String, Object> attributes = getImportedAttributes(
                name, toName, ignore, request);
        if (scope == null) {
            scope = request.getAvailableScopes().get(0);
        }
        request.getContext(scope).putAll(attributes);
    }

}