gt: 			catch (Exception e) {
context: /**
   * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
   *
   * This library is free software; you can redistribute it and/or modify it under
   * the terms of the GNU Lesser General Public License as published by the Free
   * Software Foundation; either version 2.1 of the License, or (at your option)
   * any later version.
   *
   * This library is distributed in the hope that it will be useful, but WITHOUT
   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
   * details.
   */
  
  package com.rivetlogic.event.model;
  
  import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
  import com.liferay.portal.kernel.exception.SystemException;
  import com.liferay.portal.kernel.util.ProxyUtil;
  import com.liferay.portal.kernel.util.StringBundler;
  import com.liferay.portal.model.BaseModel;
  import com.liferay.portal.model.impl.BaseModelImpl;
  import com.liferay.portal.util.PortalUtil;
  
  import com.rivetlogic.event.service.ClpSerializer;
  import com.rivetlogic.event.service.LocationLocalServiceUtil;
  
  import java.io.Serializable;
  
  import java.lang.reflect.Method;
  
  import java.util.Date;
  import java.util.HashMap;
  import java.util.Map;
  
  /**
   * @author juancarrillo
   */
  public class LocationClp extends BaseModelImpl<Location> implements Location {
  	public LocationClp() {
  	}
  
  	@Override
  	public Class<?> getModelClass() {
  		return Location.class;
  	}
  
  	@Override
  	public String getModelClassName() {
  		return Location.class.getName();
  	}
  
  	@Override
  	public long getPrimaryKey() {
  		return _locationId;
  	}
  
  	@Override
  	public void setPrimaryKey(long primaryKey) {
  		setLocationId(primaryKey);
  	}
  
  	@Override
  	public Serializable getPrimaryKeyObj() {
  		return _locationId;
  	}
  
  	@Override
  	public void setPrimaryKeyObj(Serializable primaryKeyObj) {
  		setPrimaryKey(((Long)primaryKeyObj).longValue());
  	}
  
  	@Override
  	public Map<String, Object> getModelAttributes() {
  		Map<String, Object> attributes = new HashMap<String, Object>();
  
  		attributes.put("locationId", getLocationId());
  		attributes.put("name", getName());
  		attributes.put("description", getDescription());
  		attributes.put("userId", getUserId());
  		attributes.put("companyId", getCompanyId());
  		attributes.put("groupId", getGroupId());
  		attributes.put("createDate", getCreateDate());
  		attributes.put("modifiedDate", getModifiedDate());
  
  		return attributes;
  	}
  
  	@Override
  	public void setModelAttributes(Map<String, Object> attributes) {
  		Long locationId = (Long)attributes.get("locationId");
  
  		if (locationId != null) {
  			setLocationId(locationId);
  		}
  
  		String name = (String)attributes.get("name");
  
  		if (name != null) {
  			setName(name);
  		}
  
  		String description = (String)attributes.get("description");
  
  		if (description != null) {
  			setDescription(description);
  		}
  
  		Long userId = (Long)attributes.get("userId");
  
  		if (userId != null) {
  			setUserId(userId);
  		}
  
  		Long companyId = (Long)attributes.get("companyId");
  
  		if (companyId != null) {
  			setCompanyId(companyId);
  		}
  
  		Long groupId = (Long)attributes.get("groupId");
  
  		if (groupId != null) {
  			setGroupId(groupId);
  		}
  
  		Date createDate = (Date)attributes.get("createDate");
  
  		if (createDate != null) {
  			setCreateDate(createDate);
  		}
  
  		Date modifiedDate = (Date)attributes.get("modifiedDate");
  
  		if (modifiedDate != null) {
  			setModifiedDate(modifiedDate);
  		}
  	}
  
  	@Override
  	public long getLocationId() {
  		return _locationId;
  	}
  
  	@Override
  	public void setLocationId(long locationId) {
  		_locationId = locationId;
  
  		if (_locationRemoteModel != null) {
  			try {
  				Class<?> clazz = _locationRemoteModel.getClass();
  
  				Method method = clazz.getMethod("setLocationId", long.class);
  
  				method.invoke(_locationRemoteModel, locationId);
  			}
  			catch (Exception e) {
  				throw new UnsupportedOperationException(e);
  			}
  		}
  	}
  
  	@Override
  	public String getName() {
  		return _name;
  	}
  
  	@Override
  	public void setName(String name) {
  		_name = name;
  
  		if (_locationRemoteModel != null) {
  			try {
  				Class<?> clazz = _locationRemoteModel.getClass();
  
  				Method method = clazz.getMethod("setName", String.class);
  
  				method.invoke(_locationRemoteModel, name);
  			}
  			catch (Exception e) {
  				throw new UnsupportedOperationException(e);
  			}
  		}
  	}
  
  	@Override
  	public String getDescription() {
  		return _description;
  	}
  
  	@Override
  	public void setDescription(String description) {
  		_description = description;
  
  		if (_locationRemoteModel != null) {
  			try {
  				Class<?> clazz = _locationRemoteModel.getClass();
  
  				Method method = clazz.getMethod("setDescription", String.class);
  
  				method.invoke(_locationRemoteModel, description);
  			}
  			catch (Exception e) {
  				throw new UnsupportedOperationException(e);
  			}
  		}
  	}
  
  	@Override
  	public long getUserId() {
  		return _userId;
  	}
  
  	@Override
  	public void setUserId(long userId) {
  		_userId = userId;
  
  		if (_locationRemoteModel != null) {
  			try {
  				Class<?> clazz = _locationRemoteModel.getClass();
  
  				Method method = clazz.getMethod("setUserId", long.class);
  
  				method.invoke(_locationRemoteModel, userId);
  			}
  			catch (Exception e) {
  				throw new UnsupportedOperationException(e);
  			}
  		}
  	}
  
  	@Override
  	public String getUserUuid() throws SystemException {
  		return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
  	}
  
  	@Override
  	public void setUserUuid(String userUuid) {
  		_userUuid = userUuid;
  	}
  
  	@Override
  	public long getCompanyId() {
  		return _companyId;
  	}
  
  	@Override
  	public void setCompanyId(long companyId) {
  		_companyId = companyId;
  
  		if (_locationRemoteModel != null) {
  			try {
  				Class<?> clazz = _locationRemoteModel.getClass();
  
  				Method method = clazz.getMethod("setCompanyId", long.class);
  
  				method.invoke(_locationRemoteModel, companyId);
  			}
  			catch (Exception e) {
  				throw new UnsupportedOperationException(e);
  			}
  		}
  	}
  
  	@Override
  	public long getGroupId() {
  		return _groupId;
  	}
  
  	@Override
  	public void setGroupId(long groupId) {
  		_groupId = groupId;
  
  		if (_locationRemoteModel != null) {
  			try {
  				Class<?> clazz = _locationRemoteModel.getClass();
  
  				Method method = clazz.getMethod("setGroupId", long.class);
  
  				method.invoke(_locationRemoteModel, groupId);
  			}
  			catch (Exception e) {
  				throw new UnsupportedOperationException(e);
  			}
  		}
  	}
  
  	@Override
  	public Date getCreateDate() {
  		return _createDate;
  	}
  
  	@Override
  	public void setCreateDate(Date createDate) {
  		_createDate = createDate;
  
  		if (_locationRemoteModel != null) {
  			try {
  				Class<?> clazz = _locationRemoteModel.getClass();
  
  				Method method = clazz.getMethod("setCreateDate", Date.class);
  
  				method.invoke(_locationRemoteModel, createDate);
  			}
  			catch (Exception e) {
  				throw new UnsupportedOperationException(e);
  			}
  		}
  	}
  
  	@Override
  	public Date getModifiedDate() {
  		return _modifiedDate;
  	}
  
  	@Override
  	public void setModifiedDate(Date modifiedDate) {
  		_modifiedDate = modifiedDate;
  
  		if (_locationRemoteModel != null) {
  			try {
  				Class<?> clazz = _locationRemoteModel.getClass();
  
  				Method method = clazz.getMethod("setModifiedDate", Date.class);
  
  				method.invoke(_locationRemoteModel, modifiedDate);
  			}
  