## Velocity template for creating payload getPolicyInstances response #set($begCntr=0) #set($endCntr=0) #set($entries=$ctx.getAttribute("a1MediatorRsp._length")) #set($endCntr=$endCntr.parseInt($entries)) #set( $endCntr = $endCntr - 1) [#foreach($no in [$begCntr..$endCntr])$ctx.getAttribute("a1MediatorPolicyInstancesList.[$no]")#if( $foreach.count < $endCntr+1), #end #end]