public InvoicePurchaser prepareNewInvoicePurchaser() throws ServiceException {
if (logger.isDebugEnabled()) {
logger.debug("prepareNewInvoicePurchaser() - start");
}
InvoicePurchaser ip = null;
if (this.invoicePurchaserTemplate != null) {
try {
ip = invoicePurchaserTemplate.clone();
} catch (CloneNotSupportedException e) {
logger.warn("prepareNewInvoicePurchaser()", e);
}
}
if (ip == null) {
ip = new InvoicePurchaser();
}
if (logger.isDebugEnabled()) {
logger.debug("prepareNewInvoicePurchaser() - end - return value=" + ip);
}