initialize entityproxy on any method call