public Repo<Master> call(long tid, Master env) throws Exception {
// give all namespace permissions to the creator
SecurityOperation security = AuditedSecurityOperation.getInstance();
for (NamespacePermission permission : NamespacePermission.values()) {
try {
security.grantNamespacePermission(SystemCredentials.get().toThrift(env.getInstance()), namespaceInfo.user, namespaceInfo.namespaceId, permission);
} catch (ThriftSecurityException e) {
Logger.getLogger(FinishCreateNamespace.class).error(e.getMessage(), e);
throw e;
}
}