Sorry I missed the part about not being able to change POC class, If I understand you'r requirements, You are trying to extend POC class that is belongs to a third party
You can do some thing like this (It will not work if the POC has defesive copying for behavior property)
Code:
public class POCExtension
{
private POC test;
public POCExtension(List<String> behaviorList, POC pocBean)
{
this.test = pocBean;
this.test.getBeheaviour().addAll(behaviorList);
}
public POC getTest() {
return test;
}
}
and configure your POC in context.xml file
Code:
<bean class="spring.jpa.service.POCExtension">
<constructor-arg name="behaviorList">
<list>
<value>one</value>
</list>
</constructor-arg>
<constructor-arg name="pocBean" ref="test"/>
</bean>
This will change the state of POC class (what I am suggesting is essetially a hack)