* @param context instantiated context
*/
public ControllerContextHolder(ControllerContext context) {
super(context.getId().toString());
_context = context;
StringSerializer serializer = instantiateSerializerFromContext(_context);
if (_context != null && serializer != null) {
_record.setSimpleField(Fields.SERIALIZER_CLASS.toString(), _context.getSerializerClass()
.getName());
_record.setSimpleField(Fields.CONTEXT_CLASS.toString(), _context.getClass().getName());
_record.setSimpleField(Fields.CONTEXT.toString(), serializer.serialize(_context));
}
}