Preconditions.checkArgument (correlationValue instanceof String, "invalid correlation attribute `%s`", correlationValue);
final String correlation = (String) correlationValue;
final Object okValue = message.metaData.get (Token.Ok.string);
Preconditions.checkNotNull (okValue, "missing ok attribute");
Preconditions.checkArgument (okValue instanceof Boolean, "invalid ok attribute `%s`", okValue);
final ComponentAcquireReply reply;
if (Boolean.TRUE.equals (okValue)) {
// FIXME: Someone should refactor this code... (at least...)
final Object descriptorsValue = message.metaData.get (Token.Descriptors.string);
Preconditions.checkArgument (message.metaData.containsKey (Token.Descriptors.string), "missing descriptors attribute");
Preconditions.checkArgument (descriptorsValue instanceof Map, "mismatched descriptors attribute `%s`", descriptorsValue);