throws SliderInternalStateException {
ContainerId id = container.getId();
//look up the container
RoleInstance info = getActiveContainer(id);
if (info == null) {
throw new SliderInternalStateException(
"No active container with ID " + id.toString());
}
//verify that it isn't already released
if (containersBeingReleased.containsKey(id)) {
throw new SliderInternalStateException(
"Container %s already queued for release", id);
}
info.released = true;
containersBeingReleased.put(id, info.container);
RoleStatus role = lookupRoleStatus(info.roleId);