*/
public WfResource asResource (Principal principal)
throws RemoteException, InvalidKeyException {
RequestScope scope = RequestLog.enterScope
(this, "asResource", new Object[] { principal });
WfResource res = null;
try {
ResourceAssignmentService ras = getRas();
if (ras == null) {
throw new UnsupportedOperationException
("No resource assignment service configured.");