protected VoteType castVote(Proposition p)
{
String groupId = this.getDataModel().getGroupId();
String proposerGroup = p.getOwnerGroup();
ProposalType agentProposal;
VoteType vote = null;
if (groupId != null && getConn().getGroupById(groupId).getMemberList().size() > 1)//check if is in a group
{
if (groupId.equals(proposerGroup)) //check if agent is in the same group as the proposal
{