import java.io.StringWriter;
<BUG>import java.io.Writer;
import org.exolab.castor.xml.MarshalException;</BUG>
import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;
<BUG>import org.exolab.castor.xml.ValidationException;
import org.springframework.dao.DataAccessException;</BUG>
public class CastorUtils {
private static final CastorExceptionTranslator CASTOR_EXCEPTION_TRANSLATOR = new CastorExceptionTranslator();
private CastorUtils() {

import java.io.StringWriter;
import java.io.Writer;
import org.apache.commons.io.IOUtils;
import org.exolab.castor.xml.MarshalException;
import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;
import org.exolab.castor.xml.ValidationException;
import org.springframework.core.io.Resource;
import org.springframework.dao.DataAccessException;
public class CastorUtils {
private static final CastorExceptionTranslator CASTOR_EXCEPTION_TRANSLATOR = new CastorExceptionTranslator();
private CastorUtils() {
