public List<AttachmentForXmlRpc> getAttachments(ConfluenceServerSettings confSettings, String pageId) throws IOException, XmlRpcException {
Vector paramsVector = new Vector();
String loginToken = getLoginToken(confSettings);
paramsVector.add(loginToken);
paramsVector.add(pageId);
XmlRpcClient client = getXMLRPCClient(confSettings);
Hashtable page = null;
Vector results = (Vector) client.execute(CONFLUENCE_REMOTE_API_VERSION + ".getAttachments", paramsVector);
List<AttachmentForXmlRpc> retList = new ArrayList();
for (Iterator iterator = results.iterator(); iterator.hasNext(); ) {
Hashtable hashtable = (Hashtable) iterator.next();
AttachmentForXmlRpc newAttachment = new AttachmentForXmlRpc();
newAttachment.setPageParams(hashtable);