}
else if (methodName == MethodName.ERASE) {
return new MsgQueueEraseEntry(glob, PriorityEnum.toPriorityEnum(priority), storageId,
new Timestamp(timestamp), sizeInBytes,
new EraseKey(glob, glob.getQueryKeyFactory().readObject(key)),
new EraseQos(glob, glob.getQueryQosFactory().readObject(qos)) );
}
else if (methodName == MethodName.GET) {
throw new XmlBlasterException(glob, ErrorCode.INTERNAL_NOTIMPLEMENTED, ME, "Object '" + type + "' not implemented, you can't use synchronous GET requests in queues.");
}