@SuppressWarnings("unchecked")
protected <T> T getRequiredFieldOfClass(final OCommandContext iContext, final ODocument iConfig, final String iFieldName,
Class<? extends T> iExpectedClass) {
final Object f = getFieldOfClass(iContext, iConfig, iFieldName, iExpectedClass);
if (f == null)
throw new OProcessException("Block '" + getName() + "' must define the field '" + iFieldName + "'");
return (T) resolveValue(iContext, f, true);
}