Simple Java bean factory inspired from org.springframework.beans.factory