clean code, set code version to jdk 7
update toString method
clean code
fix condition check under CHILD_PARENT mode; allowed delegateConfig to be null; clean code
add ut