String strAccess = ((LitString)access).getString();
int acc = ComponentUtil.toIntAccess(strAccess,-1);
if(acc==-1)
throw new BytecodeException("invalid access type ["+strAccess+"], access types are remote, public, package, private",getStart());
Function func = new FunctionImpl(page,name, returnType,returnFormat, output, bufferOutput, acc, displayname,description,
hint,secureJson,verifyClient,localMode,cachedWithin,_abstract,_final, body, getStart(),getEnd());
// %**%
Map attrs = getAttributes();
Iterator it = attrs.entrySet().iterator();
HashMap<String,Attribute> metadatas=new HashMap<String,Attribute>();
while(it.hasNext()){
attr=(Attribute) ((Map.Entry)it.next()).getValue();
metadatas.put(attr.getName(),attr);
}
func.setMetaData(metadatas);
return func;
}